import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBApplication.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/yb_chinese_text/yb_chinese_text.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTaiBottomPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTaiHeaderPage.dart';

class YBWorkTaiSubFourPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        color: YBColor.white,
        borderRadius: BorderRadius.circular(YBTextStyle.adapterSize8),
      ),
      child:Padding(
        padding: EdgeInsets.only(top: YBTextStyle.adapterSize15,left: YBTextStyle.adapterSize12,right: YBTextStyle.adapterSize12),
        child: Container(
          child: Column(
            children: [
              Container(
                child: YBWorkTaiHeaderPage(titleStr: YBChineseText.workTaiHangYeJieJieIdeaTitle,subTitleStr: YBChineseText.workTaiHangYeJieJieIdeaSubTitle,),
              ),
              Container(
                height: YBTextStyle.adapterSize10,
              ),
              Container(
                child: InkWell(
                  child: YBWorkTaiBottomPage(imageStr:"lvdou_xinyong",titleStr: YBChineseText.findLvDouXinYongTitle,subTitleStr:YBChineseText.findLvDouXinYongSubTitle,),
                  onTap: () async{
                    YBApplication.router.navigateTo(context, '/baseWebView?type=2');
                  },
                ),
              ),
              Container(
                child: InkWell(
                  child: YBWorkTaiBottomPage(imageStr:"xinyong_pingji",titleStr: YBChineseText.workTaiHangYeXinYongPingJiTitle,subTitleStr:YBChineseText.workTaiHangYeXinYongPingJiSubTitle,),
                  onTap: (){
                      YBApplication.router.navigateTo(context, "/baseWebView?type=1",transition: TransitionType.cupertino);
                  },
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
